@layout("/common/_container.html",{js:["/assets/modular/recy/region/region.js","/assets/common/libs/rapid-validator/prototype_for_validation.js","/assets/common/libs/rapid-validator/validation_cn.js","/assets/common/libs/rapid-validator/tooltips.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">区域表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form>
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="id" name="id" placeholder="编号" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="name" name="name" placeholder="区域名称" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="pid" name="pid" placeholder="上一级区域" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="sort" name="sort" placeholder="排序" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="level" name="level" placeholder="级别" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="longcode" name="longcode" placeholder="区域长编码" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="code" name="code" placeholder="区域编码" autocomplete="off"/>
                                </div>


                                <div class="layui-inline">
                                    <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                    @if(shiro.hasPermission("/region/add")){
                                    <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                    @}
                                    @if(shiro.hasPermission("/region/delete")){
                                    <button id="btnDel" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>删除</button>
                                    @}
                                    <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                                </div>
                            </div>
                        </div>
                    </form>
                    <table class="layui-table" id="regionTable" lay-filter="regionTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/region/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
    @if(shiro.hasPermission("/region/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>

@}